import { IParam } from '../../common';
import { IChartAbility } from '../ability';
import { ICtrlActionResult } from '../data-action';
import { IChartStore } from '../store';
import { IMDCtrlController } from './i-md-ctrl-controller';

/**
 * 图表部件控制器接口
 *
 * @export
 * @interface IChartController
 * @extends {ICtrlController}
 */
export interface IChartController<
	S extends IChartStore,
	A extends IChartAbility
> extends IMDCtrlController<S, A> {
	/**
	 * 图表数据加载
	 *
	 * @param {IParam} [opts]
	 * @return {*}  {Promise<void>}
	 * @memberof IChartController
	 */
	load(opts?: IParam): Promise<ICtrlActionResult>;
}
